public class Student {
    private String name;
    private int studentId;
    private int classInfo;
    private String gender;
    private int age;
    private String personality;

    public Student(String name, int studentId, int classInfo, String gender, int age, String personality) {
        this.name = name;
        this.studentId = studentId;
        this.classInfo = classInfo;
        this.gender = gender;
        this.age = age;
        this.personality = personality;
    }

    public String getName() {
        return name;
    }

    public int getStudentId() {
        return studentId;
    }
    public int getClassInfo() {
        return classInfo;
    }
    public String getGender() {
        return gender;
    }
    public int getAge() {
        return age;
    }
    public String getPersonality() {
        return personality;
    }

    public void infosummary() {
        System.out.println("学生信息概要");
        System.out.println("姓名: " + name);
        System.out.println("学号: " + studentId);
        System.out.println("班级: " + classInfo);
        System.out.println("性别: " + gender);
        System.out.println("年龄: " + age);
        System.out.println("性格: " + personality);
        System.out.println();
    }

    public static void main(String[] args) {
        Student stu1 = new Student("小徐", 1001, 1, "男", 18, "慢热");
        stu1.infosummary();
        Student stu2 = new Student("小祎", 3002, 3, "女", 18, "内敛");
        stu2.infosummary();
        Student stu3 = new Student("小程", 4034, 4, "女", 20, "活泼");
        stu3.infosummary();
    }
}